/**   
 * @Title: Choose.java 
 * @Package cn.edu.cdtu.healthserver.domain 
 * @Description: TODO 
 * @author  
 * @date 
 * @version V0.0   
 */
package cn.edu.cdtu.healthserver.domain;

/** 
 * @ClassName: Choose 
 * @Description: TODO
 * @author 
 * @date 
 *  
 */
public class Choose {

	private int id;
	private int question_id;
	private String descriptions;
	private int point;
	private int available = 1;
	
	/** 
	 * @Title: Choose
	 * @Description: TODO
	 * @throws 
	 *
	 */
	public Choose() {
	}

	/** 
	 * @Title: Choose
	 * @Description: TODO
	 * @throws 
	 *
	 * @param question_id
	 * @param descriptions
	 * @param point
	 */
	public Choose(int question_id, String descriptions, int point) {
		this.question_id = question_id;
		this.descriptions = descriptions;
		this.point = point;
	}

	/** 
	 * @Title: Choose
	 * @Description: TODO
	 * @throws 
	 *
	 * @param id
	 * @param question_id
	 * @param descriptions
	 * @param point
	 */
	public Choose(int id, int question_id, String descriptions, int point) {
		this.id = id;
		this.question_id = question_id;
		this.descriptions = descriptions;
		this.point = point;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the question_id
	 */
	public int getQuestion_id() {
		return question_id;
	}

	/**
	 * @param question_id the question_id to set
	 */
	public void setQuestion_id(int question_id) {
		this.question_id = question_id;
	}

	/**
	 * @return the descriptions
	 */
	public String getDescriptions() {
		return descriptions;
	}

	/**
	 * @param descriptions the descriptions to set
	 */
	public void setDescriptions(String descriptions) {
		this.descriptions = descriptions;
	}

	/**
	 * @return the point
	 */
	public int getPoint() {
		return point;
	}

	/**
	 * @param point the point to set
	 */
	public void setPoint(int point) {
		this.point = point;
	}

	/**
	 * @return the available
	 */
	public int getAvailable() {
		return available;
	}

	/**
	 * @param available the available to set
	 */
	public void setAvailable(int available) {
		this.available = available;
	}

	/* (non-Javadoc)
	 * <p>Title: hashCode</p> 
	 * <p>Description: </p> 
	 * @return 
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + available;
		result = prime * result
				+ ((descriptions == null) ? 0 : descriptions.hashCode());
		result = prime * result + id;
		result = prime * result + point;
		result = prime * result + question_id;
		return result;
	}

	/* (non-Javadoc)
	 * <p>Title: equals</p> 
	 * <p>Description: </p> 
	 * @param obj
	 * @return 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Choose other = (Choose) obj;
		if (available != other.available)
			return false;
		if (descriptions == null) {
			if (other.descriptions != null)
				return false;
		} else if (!descriptions.equals(other.descriptions))
			return false;
		if (id != other.id)
			return false;
		if (point != other.point)
			return false;
		if (question_id != other.question_id)
			return false;
		return true;
	}

	/* (non-Javadoc)
	 * <p>Title: toString</p> 
	 * <p>Description: </p> 
	 * @return 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Choose [id=" + id + ", question_id=" + question_id
				+ ", descriptions=" + descriptions + ", point=" + point
				+ ", available=" + available + "]";
	}

}
